<%@page import="schronisko.Queries"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Rejestracja</title>
<link rel="stylesheet" type="text/css" href="styles/forms.css">
<jsp:include page="index.jsp"></jsp:include>
</head>
<body>
<div class = 'content'>
<center>
<h3><font color='green'>
<%
int step = 0;
try{
step = (Integer)session.getAttribute("register_step");
}
catch (NullPointerException e){
	session.setAttribute("register_step", 0);
}
switch(step){
case 1:
	out.println("Blad bazy danych");
	session.setAttribute("register_step", 0);
	break;
case 2:
	out.println("Niepoprawny numer dowodu (9 znakow)");
	session.setAttribute("register_step", 0);
	break;
case 3:
	out.println("Niepoprawny PESEL (11 znakow)");
	session.setAttribute("register_step", 0);
	break;
}
%>
</font>
</h3>
<form name = "Register" class='form-container' 
		action = "Register"
		method = "POST">
		<div class="form-title"><h2>Dane Osobowe</h2></div>
		<div class="form-title">Imie:</div>
		<input id = "name" name = "name" type = "text" class="form-field" ><br>
		<div class="form-title">Nazwisko:</div>
		<input id = "surname" name = "surname" type = "text" class="form-field" ><br>
		<div class="form-title">Miasto:</div>
		<input id = "city" name = "city" type = "text" class="form-field" ><br>
		<div class="form-title">Numer domu:</div>
		<input id = "house" name = "house" type = "text" class="form-field" ><br>
		<div class="form-title">Poczta:</div>
		<input id = "post" name = "post" type = "text" class="form-field" ><br>
		<div class="form-title">PESEL:</div>
		<input id = "pesel" name = "pesel" type = "text" class="form-field" ><br>
		<div class="form-title">Numer dowodu osobistego:</div>
		<input id = "id_card" name = "id_card" type = "text" class="form-field" ><br>
		<div class="submit-container">
		<input type = "submit" value = "zatwierdz" class="submit-button">
		</div>
		
</form>
</center>
</div>
</body>
</html>